<template>
    <div class="main" :style="{minHeight : h}">
        <header-1>
            <template v-slot:center>
               <span class="center">
                    报名记录
               </span>
            </template>
        </header-1>
        <div class="show" v-for="(item,index) in arr" :key="index">
            <div class="show_1">
                <div class="show_2">
                    <p class="show_3">{{item.acName}}</p>
                    <p>流水编号：{{item.waterId}}</p>
                    <p v-if="item.applicationStatus==2">交易编号：{{item.tradeId}}</p>
                    <p>报名时间：{{item.createTime}}</p>
                    <p v-if="item.applicationStatus==2">付款时间：{{item.payTime}}</p>
                    <p v-if="item.applicationStatus==2">成功时间：{{item.successTime}}</p>
                    <p v-else-if="item.applicationStatus==3">失败时间：{{item.deTime}}</p>
                </div>
                <div class="show_4">
                    <p v-if="item.applicationStatus==1">待付款</p>
                    <p v-else-if="item.applicationStatus==2">报名成功</p>
                    <p v-else>报名失败</p>
                    <span><span class="show_5" >费用</span> <span class="show_6">₱{{item.shouldPay}}</span></span>
                </div>
            </div>
            <div class="show_7" v-if="item.applicationStatus==1">
                <div class="show_8">
                    <img src="https://cdn3.axureshop.com/demo/1525603/images/%E6%8A%A5%E5%90%8D%E8%AE%B0%E5%BD%95/u5277.png" /><span>剩余9分钟</span>
                </div>
                <div class="show_9">
                    去支付
                </div>
            </div>
            <div class="show_10">
                <span>查看活动详情</span>
                <img src="https://cdn3.axureshop.com/demo/1525603/images/2%E9%97%A8%E5%BA%97%E4%BF%A1%E6%81%AF/u716.png" />
            </div>
        </div>
        <div class="show_11">
                仅展示近12个月的报名记录
        </div>
    </div>
</template>
<script>
import header1 from '../../components/BS/header1View.vue'
import {jilu} from '../../https/MaRk'
export default {
    name : 'ApplicationView',
    data(){
        return{
            sta:true,
            sta1:true,
            h:'',
            arr:''
        }
    },
    components:{
        header1   
    },
    created(){
        this.h = window.innerHeight + 'px'
        jilu().then(res =>{
            console.log(res);
            this.arr = res.data.data
        }).catch(err =>{
            console.log(err);
        })
    },
    methods:{

    }
}
</script>

<style scoped>
.main{
    background-color:#f5f5f5 ;
}
.show{
    width: 90%;
    background-color: #FFFFFF;
    margin: 20px auto;
    border-radius: 10px;
}
.show_1{
    width: 90%;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
}
.show_2{
    font-size: 15px;
}
.show_3{
    font-size: 18px;
    color: #333333;
    font-weight: bold;
}
.show_4{
    font-size: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.show_5{
    font-size: 12px;
    color: #999999;
}
.show_6{
    font-weight: bold;
}
.show_7{
    display: flex;
    width: 90%;
    justify-content: space-between;
    margin: 15px auto;
}
.show_8{
    font-size: 10px;
    width:76px ;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.show_9{
    width:82px ;
    height: 30px;
    display: flex;
    font-size: 15px;
    justify-content: center;
    align-items: center;
    border: 1px solid #ff6e53;
    color: #ff6e53;
    border-radius: 5px;
}
.show_10{
    font-size: 12px;
    color: #79798f;
    width: 90%;
    height: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px auto;
    border-top: 1px solid #f5f5f5;
}
.show_11{
    width: 100%;
    height: 50px;
    font-size: 16px;
    color: #797979;
    text-align: center;
    margin-top: 20px;
}
</style>